package com.yulin.stock;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;

import com.meterware.httpunit.GetMethodWebRequest;
import com.meterware.httpunit.WebClient;
import com.meterware.httpunit.WebConversation;
import com.meterware.httpunit.WebRequest;
import com.meterware.httpunit.WebResponse;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args ) throws Exception
    {
//        Document doc = Jsoup.connect("http://quote.eastmoney.com/sz002396.html").get();
//        System.out.println(doc.html());
//        
//        Element ele = doc.select("b#km2").first();
//        System.out.println(ele.text());
//        System.out.println(ele.html());
        
        WebConversation wc = new WebConversation();
        WebRequest     req = new GetMethodWebRequest( "http://quote.eastmoney.com/sz002396.html" );
        WebResponse   resp = wc.getResponse( req );
        System.out.println(resp.getText());
        
        
    }
}
